package com.dt.app.modules.sys.entities;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 区域
 * </p>
 *
 * @author 鸿源塔基
 * @since 2023-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_region")
@ApiModel(value="SysRegion对象", description="区域")
public class SysRegion implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "区域")
    @TableId(value = "sys_region_Id", type = IdType.AUTO)
    private Integer sysRegionId;

    @ApiModelProperty(value = "币种汇率")
    @TableField("currency_hl_id")
    private Integer currencyHlId;

    @ApiModelProperty(value = "区域编码")
    @TableField("region_code")
    private String regionCode;

    @ApiModelProperty(value = "路径")
    @TableField("region_path")
    private String regionPath;

    @ApiModelProperty(value = "层级")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "类型 1推广城市 0国家 2上线发布到前台 9不发布到前台")
    @TableField("region_type")
    private Integer regionType;

    @ApiModelProperty(value = "名称")
    @TableField("region_name")
    private String regionName;

    @ApiModelProperty(value = "邮编")
    @TableField("zip_code")
    private String zipCode;

    @ApiModelProperty(value = "电话区号")
    @TableField("telephone_code")
    private String telephoneCode;

    @ApiModelProperty(value = "区域图标")
    @TableField("region_icon")
    private String regionIcon;

    @ApiModelProperty(value = "优先级")
    @TableField("priority")
    private Integer priority;

    @ApiModelProperty(value = "上级区域")
    @TableField("parent_region_id")
    private Integer parentRegionId;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private BigDecimal longitude;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private BigDecimal latitude;

    @ApiModelProperty(value = "配送仓id 父包含子")
    @TableField("product_ck_id")
    private Integer productCkId;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
